\documentclass[oneside,openright,headings=optiontohead]{scrbook}
\renewcommand{\baselinestretch}{1.3}  %行間距倍率


\usepackage[
a4paper=true,
%CJKbookmarks,
unicode=true,
bookmarksnumbered,
bookmarksopen,
hyperfigures=true,
hyperindex=true,
pdfpagelayout = SinglePage,
pdfpagelabels = true,
pdfstartview = FitV,
colorlinks,
pdfborder=001,
%linkcolor=black,
%anchorcolor=black,
%citecolor=black,
linkcolor=white,
anchorcolor=white,
citecolor=white,
pdftitle={我的前半生},
pdfauthor={爱新觉罗·溥仪},
pdfsubject={我的前半生},
pdfkeywords={《我的前半生》是爱新觉罗·溥仪的自传，作者从自己的家庭背景写起，回顾了他在入宫做了皇帝、遭遇辛亥革命、满清皇帝退位、民国成立、北洋军阀混战、出宫、客寓天津、做伪满洲皇帝、逃亡，直至解放后接受改造，成为普通公民的全部历史。他的写作即是个人的历史书写，也由于他的特殊的历史地位，再现了二十世纪上半期中国社会所发生的历史变迁。},
pdfcreator={https://m-mono.github.io}
]{hyperref}


%Kindle Voyage, Paperwhite (3rd gen), Oasis: 6 in diagonal, 1448 × 1072 pixels @ 300 PPI 
\usepackage[papersize={9cm,12.2cm}]{geometry} % Kindle Format
\geometry{left=1.3cm,right=1.3cm,top=2cm,bottom=1cm,foot=4cm}
\usepackage{graphics,graphicx,pdfpages}

%自动加注拼音
\usepackage{xpinyin}
\xpinyinsetup{format={\color{PinYinColor}}}
%手动加注外语及日语振假名
\usepackage{ruby}
\renewcommand\rubysize{0.4} %匹配 xpinyin 默认标注字体大小
\renewcommand\rubysep{-0.3em} %匹配 xpinyin 默认标注高度

\usepackage{xeCJK}
\usepackage{indentfirst}
\setlength{\parindent}{2.0em}

%正文字体
\setCJKmainfont[Path=Fonts/]{SourceHanSansCN-Normal.otf}
\setCJKsansfont[Path=Fonts/]{SourceHanSansCN-Normal.otf}
\setCJKmonofont[Path=Fonts/]{SourceHanSansCN-Normal.otf}
\setmainfont[Path=Fonts/]{SourceHanSansCN-Normal.otf}
\setsansfont[Path=Fonts/]{SourceHanSansCN-Normal.otf}
\setmonofont[Path=Fonts/]{SourceHanSansCN-Normal.otf}
%满文字体
\newfontfamily{\Man}[Path=Fonts/]{Ab-Xy.ttf}
%蒙文字体
\newfontfamily{\Meng}[Path=Fonts/]{NotoSansMongolian-Regular.ttf}
%俄文及西里尔字体
\newfontfamily{\Rus}[Path=Fonts/]{SourceSansPro-Regular.otf}


% 頁面及文字顏色
\usepackage{xcolor}
\definecolor{TEXTColor}{RGB}{130,130,130} % TEXT Color
\definecolor{PinYinColor}{RGB}{100,100,100} % TEXT Color
\definecolor{NOTEXTColor}{RGB}{130,130,130} % No TEXT Color
\definecolor{BGColor}{RGB}{0,0,0} % BG Color
\pagecolor{BGColor}
\color{TEXTColor}

\makeindex
\renewcommand{\contentsname}{我的前半生}
\usepackage{fancyhdr} % 設置頁眉頁腳
\pagestyle{fancy}
\renewcommand{\headrulewidth}{0pt}  %頁眉線寬，設為0可以去頁眉線
\renewcommand{\footrulewidth}{0pt}  %頁眉線寬，設為0可以去頁眉線

\usepackage{titletoc}
\dottedcontents{section}[100em]{\bfseries}{100em}{100em} % 去掉目录虚线


\begin{document}
	\frontmatter
	\begin{figure}[ht]
		\begin{center}
			\includepdf[width=\paperwidth]{Frontmatter.jpg}
		\end{center}
	\end{figure}
	\newpage
	{\color{TEXTColor}
		\tableofcontents
		\newpage
		\mainmatter
		\addcontentsline{toc}{part}{{\large 1859-1908 我的家世}}
		\part*{1859-1908\\\hspace{1cm}我的家世}
		\include{./Chapters/01_01_醇贤亲王的一生}
		\include{./Chapters/01_02_外祖父荣禄}
		\include{./Chapters/01_03_慈禧太后的决定}
		\include{./Chapters/01_04_摄政王监国}
		\include{./Chapters/01_05_亲王之家}
		\addcontentsline{toc}{part}{{\large 1908-1917 我的童年}}
		\part*{1908-1917\\\hspace{1cm}我的童年}
		\include{./Chapters/02_01_登极与退位}
		\include{./Chapters/02_02_帝王生活}
		\include{./Chapters/02_03_母子之间}
		\include{./Chapters/02_04_毓庆宫读书}
		\include{./Chapters/02_05_太监}
		\include{./Chapters/02_06_我的乳母}
		\addcontentsline{toc}{part}{{\large 1917-1924 北京的“小朝廷”}}
		\part*{1917-1924\\\hspace{1cm}北京的“小朝廷”}
		\include{./Chapters/03_01_袁世凯时代}
		\include{./Chapters/03_02_丁巳复辟}
		\include{./Chapters/03_03_北洋元老}
		\include{./Chapters/03_04_不绝的希望}
		\include{./Chapters/03_05_庄士敦}
		\include{./Chapters/03_06_结婚}
		\include{./Chapters/03_07_内部冲突}
		\include{./Chapters/03_08_遣散太监}
		\include{./Chapters/03_09_整顿内务府}
		\include{./Chapters/03_10_紫禁城的末日}
		\include{./Chapters/03_11_在北府里}
		\include{./Chapters/03_12_三岔口上的抉择}
		\include{./Chapters/03_13_由“使馆区”到“租界”}
		\addcontentsline{toc}{part}{{\large 1924-1930 天津的“行在”}}
		\part*{1924-1930\\\hspace{1cm}天津的“行在”}
		\include{./Chapters/04_01_罗振玉的努力}
		\include{./Chapters/04_02_我和奉系将领之间}
		\include{./Chapters/04_03_谢米诺夫和“小诸葛”}
		\include{./Chapters/04_04_东陵事件}
		\include{./Chapters/04_05_领事馆、司令部、黑龙会}
		\include{./Chapters/04_06_郑孝胥的理想}
		\include{./Chapters/04_07_“行在”生活}
		\addcontentsline{toc}{part}{{\large 1931-1932 到东北去}}
		\part*{1931-1932\\\hspace{1cm}到东北去}
		\include{./Chapters/05_01_不静的“静园”}
		\include{./Chapters/05_02_日本人意见分歧}
		\include{./Chapters/05_03_夜见土肥原}
		\include{./Chapters/05_04_白河偷渡}
		\include{./Chapters/05_05_在封锁中}
		\include{./Chapters/05_06_所见与所思}
		\include{./Chapters/05_07_会见板垣}
		\addcontentsline{toc}{part}{{\large 1932-1945 伪满十四年}}
		\part*{1932-1945\\\hspace{1cm}伪满十四年}
		\include{./Chapters/06_01_傀儡戏开场}
		\include{./Chapters/06_02_尊严与职权}
		\include{./Chapters/06_03_订立密约以后}
		\include{./Chapters/06_04_《国联调查团报告书》}
		\include{./Chapters/06_05_第三次做“皇帝”}
		\include{./Chapters/06_06_幻想的破灭}
		\include{./Chapters/06_07_吉冈安直}
		\include{./Chapters/06_08_几个“诏书”的由来}
		\include{./Chapters/06_09_家门以内}
		\include{./Chapters/06_10_大崩溃}
		\addcontentsline{toc}{part}{{\large 1945-1950 在苏联的五年}}
		\part*{1945-1950\\\hspace{1cm}在苏联的五年}
		\include{./Chapters/07_01_疑惧和幻想}
		\include{./Chapters/07_02_放不下架子}
		\include{./Chapters/07_03_我不认罪}
		\addcontentsline{toc}{part}{{\large 1950-1954 由抗拒到认罪}}
		\part*{1950-1954\\\hspace{1cm}由抗拒到认罪}
		\include{./Chapters/08_01_我只想到死}
		\include{./Chapters/08_02_初到抚顺}
		\include{./Chapters/08_03_我离开了家族}
		\include{./Chapters/08_04_搬到哈尔滨}
		\include{./Chapters/08_05_写自传与献“宝”}
		\include{./Chapters/08_06_小家族起变化}
		\include{./Chapters/08_07_坦白从宽}
		\include{./Chapters/08_08_糊纸盒}
		\include{./Chapters/08_09_检察人员来了}
		\include{./Chapters/08_10_东北人民的灾难和仇恨}
		\include{./Chapters/08_11_“自作孽，不可活”}
		\addcontentsline{toc}{part}{{\large 1955-1959 接受改造}}
		\part*{1955-1959\\\hspace{1cm}接受改造}
		\include{./Chapters/09_01_怎样做人}
		\include{./Chapters/09_02_问题在自己身上}
		\include{./Chapters/09_03_不可衡量的人}
		\include{./Chapters/09_04_变化说明了一切}
		\include{./Chapters/09_05_会见亲属}
		\include{./Chapters/09_06_日本战犯}
		\include{./Chapters/09_07_“世界上的光辉”}
		\include{./Chapters/09_08_再次参观}
		\include{./Chapters/09_09_劳动与乐观}
		\include{./Chapters/09_10_考验}
		\include{./Chapters/09_11_特赦}
		\addcontentsline{toc}{part}{{\large 1960 新的一章}}
		\part*{1960\\\hspace{1cm}新的一章}
		\include{./Chapters/10_01_新的一章}
		\backmatter
		{\color{TEXTColor}
			\begin{figure}[ht]
				\begin{center}
					\includepdf[width=\paperwidth,height=\paperheight]{Backmatter.jpg}
				\end{center}
			\end{figure}
\end{document}